﻿namespace MvcCommonLib.Context {
    public class UserContext {
        /// <summary>
        /// Constructor of the UserContext
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <param name="code"></param>
        /// <param name="emplyeeId"></param>
        public UserContext(int id, string name, UserRole role) {
            UserId = id;
            Username = name;
            UserRole = role;
        }

        /// <summary>
        /// This is the Id of this account(It is not saleId or SalesManagerid)
        /// </summary>
        /// <value>
        /// The user id.
        /// </value>
        public int UserId { get; private set; }
        /// <summary>
        /// Gets the username.
        /// </summary>
        /// <value>
        /// The username.
        /// </value>
        public string Username { get; private set; }
        /// <summary>
        /// Current selected languages of the user.
        /// </summary>
        public string Language { get; set; }
        public UserRole UserRole {
            get;
            set;
        }
    }
}
